//
//  FoldCellModel.h
//  Rail
//
//  Created by hychen on 2018/3/9.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FoldCellModel : NSObject
@property(nonatomic,copy) NSString *icon;
@property(nonatomic,copy) NSString *text;
@property(nonatomic,copy) NSString *level;

@property(nonatomic,assign) NSUInteger belowCount;

@property(nonatomic,nullable,strong) FoldCellModel *supermodel;
@property(nonatomic,strong) NSMutableArray<__kindof FoldCellModel *> *submodels;

+ (instancetype)modelWithDic:(NSDictionary *)dic;
- (NSArray *)open;
- (void)closeWithSubmodels:(NSArray *)submodels;
@end
